import { request, config } from 'utils'

const { api } = config
const { accoutList, accoutAdd, accoutEdit, accoutQuery, accoutDel } = api

export async function list (params) {
  return request({
    url: accoutList,
    method: 'put',
    data: params,
  })
}

export async function query (params) {
  return request({
    url: accoutQuery,
    method: 'put',
    data: params,
  })
}


export async function create (params) {
  return request({
    url: accoutAdd,
    method: 'post',
    data: params,
  })
}

export async function update (params) {
  return request({
    url: accoutEdit,
    method: 'put',
    data: params,
  })
}
export async function remove (params) {
  return request({
    url: accoutDel,
    method: 'delete',
    data: params,
  })
}



